package com.hdaccp.shuiguoD.dao;

import com.hdaccp.shuiguoD.entity.Gongying;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GongyingDao {
    //显示
    public List<Gongying> queryAll();

    //查询
    public long getTotalCount(@Param("gname") String gname);
    public List<Gongying> query(@Param("gname") String gname, @Param("offset") int offset, @Param("limit") int limit);

    //删除
    public int delet(int gid);

    //增加
    public int add(Gongying gongyinginfo);

    //修改
    public int update(Gongying gongyinginfo);
    //根据ID查询
    public Gongying queryById(int gid);
}
